package com.lyc.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyc.common.model.entity.Order;
import com.lyc.project.model.dto.order.OrderAddRequest;
import com.lyc.project.model.dto.order.OrderDeleteRequest;
import com.lyc.project.model.dto.order.OrderPayRequest;
import com.lyc.project.model.dto.order.OrderQueryRequest;
import com.lyc.project.model.vo.OrderVO;


import javax.servlet.http.HttpServletRequest;

/**
* @author Linyichengzi
* @description 针对表【api_order(api订单表)】的数据库操作Service
* @createDate 2023-08-22 11:00:34
*/
public interface TOrderService extends IService<Order> {

    /**
     * 创建订单
     * @param orderAddRequest
     * @param request
     * @return
     */
    OrderVO addOrder(OrderAddRequest orderAddRequest, HttpServletRequest request);

    /**
     * 删除订单
     * @param orderDeleteRequest
     * @param request
     * @return
     */
    boolean deleteOrder(OrderDeleteRequest orderDeleteRequest, HttpServletRequest request);

    /**
     * 支付订单
     * @param orderPayRequest
     * @param request
     * @return
     */
    boolean payOrder(OrderPayRequest orderPayRequest, HttpServletRequest request);

    /**
     * 获取订单list
     * @param orderQueryRequest
     * @param request
     * @return
     */
    Page<OrderVO> listPageOrder(OrderQueryRequest orderQueryRequest, HttpServletRequest request);
    
    

}
